﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiaryPlanner
{
    public partial class LogIn : Form
    {
        MainForm mfObject;
        public LogIn(MainForm mf)
        {
            mfObject = mf;
            InitializeComponent();            
        }

        private void button1_Click(object sender, EventArgs e)//로그인
        {
            //if(textBoxID.Text가 db에 없다면){
            //    //id가 잘못되었습니다-dialog
            //    textBoxID.Text="";
            //    textBoxPW.Text="";
            //    return;
            //}else{
            //    if(비밀번호가 맞다면){
            //        //login 절차 ~~~~
                
            //    }else{
            //        //비밀번호가 잘못되었습니다  -dialog
            //    }
            //}

        }

        private void button2_Click(object sender, EventArgs e)
        {
            NewID nid = new NewID();
            nid.ShowDialog();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

       

    }
}
